﻿using System;
using System.Collections.Generic;
using System.Web;

using Util.Helper;
using Util.Configuration;
namespace Com.Ompchina.Web.admin.WebHandlers.user
{
    public class logout : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            new StaffHelper().ClearLoginStaff();
            context.Response.Cache.SetExpires(DateTime.Now.AddDays(-10));
            context.Response.Redirect(WebConfiguration.WebRoot + WebConfiguration.AdminRoot + "main/login.aspx");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}
